import Vue from 'vue'
import App from './App'
import { router } from './router'
import Axios from './utils/fetch'
import Methods from './mixins/methods'

import {
  Toast,
  Dialog,
  Button,
  Icon,
  Tab,
  Tabs,
  PullRefresh,
  List,
  Form,
  Field,
  RadioGroup,
  Radio,
  Area,
  Popup
} from 'vant'
Vue.prototype.$axios = Axios
Vue.use(Toast)
  .use(Dialog)
  .use(Button)
  .use(Icon)
  .use(Tab)
  .use(Tabs)
  .use(PullRefresh)
  .use(List)
  .use(Field)
  .use(Form)
  .use(RadioGroup)
  .use(Radio)
  .use(Area)
  .use(Popup)
  .mixin(Methods)

new Vue({
  el: '#app',
  router,
  render: (h) => h(App)
})
